/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Logger;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

/**
 *
 * @author marcy
 */
public class MyLogger {
    
    private static Logger logger = null;

    public static Logger getLogger() {
        if(logger == null){
            PropertyConfigurator.configure(MyLogger.class.getClassLoader().getResource("Logger/logger.properties"));
            logger = Logger.getLogger(MyLogger.class.getName());
            System.out.println( MyLogger.class.getClassLoader().getResource("logger.properties"));
            
        }
            
        return logger;
    }
    
    
    
    
    
    
}
